package org.jeecg.modules.product.oa.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;

import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 日程、计划
 * @Author: jeecg-boot
 * @Date:   2024-11-14
 * @Version: V1.0
 */
@Data
@TableName("tb_plan")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="日程、计划")
public class TbPlan implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
	/**创建人*/
    @Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @Schema(description = "所属部门")
    private String sysOrgCode;
	/**日程标题*/
	@Excel(name = "日程标题", width = 15)
    @Schema(description = "日程标题")
    private String title;
	/**日程类型*/
	@Excel(name = "日程类型", width = 15, dicCode = "scheduleType")
	@Dict(dicCode = "scheduleType")
    @Schema(description = "日程类型")
    private String type;
	/**提醒类型*/
	@Excel(name = "提醒类型", width = 15, dicCode = "remindMode")
	@Dict(dicCode = "remindMode")
    @Schema(description = "提醒类型")
    private String remindType;
	/**紧急程度*/
	@Excel(name = "紧急程度", width = 15, dicCode = "urgent_level")
	@Dict(dicCode = "urgent_level")
    @Schema(description = "紧急程度")
    private String urgentLevel;
	/**提醒时间*/
	@Excel(name = "提醒时间", width = 15, dicCode = "reminderTimeType")
	@Dict(dicCode = "reminderTimeType")
    @Schema(description = "提醒时间")
    private String reminderTime;
	/**重复提醒*/
	@Excel(name = "重复提醒", width = 15, dicCode = "repeatReminderType")
	@Dict(dicCode = "repeatReminderType")
    @Schema(description = "重复提醒")
    private String remind;
	/**日程开始时间*/
	@Excel(name = "日程开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "日程开始时间")
    private Date startTime;
	/**日程结束时间*/
	@Excel(name = "日程结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "日程结束时间")
    private Date endTime;
	/**是否全天*/
	@Excel(name = "是否全天", width = 15)
    @Schema(description = "是否全天")
    private String allDay;
	/**颜色*/
	@Excel(name = "颜色", width = 15)
    @Schema(description = "颜色")
    private String planColor;
	/**参与人*/
	@Excel(name = "参与人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Schema(description = "参与人")
    private String receiverIds;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @Schema(description = "备注")
    private String remark;
}
